package com.bootdo.appsystem.service;

import com.bootdo.appsystem.domain.ShouruDO;

import java.rmi.server.UID;
import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author xiaoxiao
 * @email 806191255@qq.com
 * @date 2018-05-12 14:42:14
 */
public interface ShouruService {
	
	ShouruDO get(Integer id);
	
	List<ShouruDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(ShouruDO shouru);
	
	int update(ShouruDO shouru);
	
	int remove(Integer id);
	
	int batchRemove(Integer[] ids);


	/**
	 * 获取用户本金收入统计
	 * @param uid 用户编号
	 * @return
	 */
	Double sumUserCorpus(Integer uid);

	/**
	 * 获取用户推广收入统计
	 * @param uid 用户编号
	 * @return
	 */
	Double sumUserTuiguang(Integer uid);

	/**
	 * 获取用户用户红包收入统计
	 * @param uid 用户编号
	 * @return
	 */
	Double sumUserHongbao(Integer uid);

	/**
	 * 获取用户商家红包收入统计
	 * @param uid 用户编号
	 * @return
	 */
	Double sumUserSellerHongbao(Integer uid);


}
